home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Skunkware 5
/
Skunkware 5.iso
/
src
/
Games
/
xrobots
/
xrobots.doc
< prev
next >
Wrap
Text File
|
1995-05-03
|
9KB
|
265 lines
XROBOTS(6) XROBOTS(6)
NNAAMMEE
xrobots - fight off villainous robots (X Windows)
SSYYNNOOPPSSIISS
//uussrr//ggaammeess//xxrroobboottss
DDEESSCCRRIIPPTTIIOONN
As in robots(6), xrobots puts you into a world of evil
robots (but in an X window, of course). It's your intel-
lect against the robots, who have numbers on their side.
Fortunately for you, these robots have a bad habit of
crashing into each other, destroying themselves and tem-
porarily improving your chances of survival.
You have a the following abilities:
You can move one square at a time (but so can the
robots). The direction of possible moves are indi-
cated by the dots near your man and by the shape of
the cursor. Clicking the left mouse button selects
the direction.
You can wait for robots to reach you. Do this by
clicking on the button labeled "Wait" below the
main playfield or by pressing 'w' while the mouse
pointer is within the playfield.
You can use your teleportation device. This defen-
sive weapon is not without risk. This can be
invoked by clicking on "Teleport" or by pressing
't'.
You have a "sonic screwdriver" which wipes out any
robots within close proximity. This offensive
weapon recharges once for each level. This can be
invoked by the "Sonic Screwdiver" button or by
pressing 's'.
The default keyboard setup is similar to the origi-
nal robots:
hh move one square left
ll move one square right
kk move one square up
jj move one square down
yy move one square up and left
uu move one square up and right
bb move one square down and left
30 Sep 1989 1
XROBOTS(6) XROBOTS(6)
nn move one square down and right
.. (also space) do nothing for one turn
HHJJKKLLBBNNYYUU
run as far as possible in the given
direction tt teleport to a random
location
ww wait until they reach you
ss use your sonic screwdriver
ccoonnttrrooll--CC iiss qquuiitt
RREESSOOUURRCCEESS
If you don't like 's' for the sonic screwdriver and 't'
for teleport you can change this. xrobots is programmed
using the X Toolkit and takes advantage of the toolkit's
resources and translation schemes. The following are
resources that are used by xrobots and should probably be
set in your .Xdefaults file.
xrobots.autoteleport
If set to true, you teleport automatically
when there is no other option. This does
not autoteleport if the sonic screwdriver
has not been used. The default is false.
xrobots.autoteleportalways
This is similar to autoteleport, but tele-
ports automatically even if you have a sonic
screwdriver available. The default is
false.
xrobots.diewaiting
Setting this to true adds a little risk to
your life and makes the game play a little
more like BSD robots. The default is false.
xrobots.scorefile
Set this to the path of your personal score
file. The file will be created if it does
not exist. The default:
/usr/games/lib/xrobots_scores
xrobots.showmovement
If set to false, intermediate movements will
not be shown. This may be useable for very
slow servers or very fast players. The
default is true.
xrobots.spiffy
30 Sep 1989 2
XROBOTS(6) XROBOTS(6)
If set to false, some of the graphics will
not be shown. This is helpful for slow
servers. The default is true.
Additionally, all the key bindings can be changed. Here's
a sample set of translation bindings that you can modify
to your preferences:
xrobots*Translations: #augment \n\
<Btn1Up>: move() \n\
:<Key>u: move(right, up) \n\
:<Key>l: move(right) \n\
:<Key>n: move(right, down) \n\
:<Key>y: move(left, up) \n\
:<Key>h: move(left) \n\
:<Key>b: move(left, down) \n\
:<Key>k: move(up) \n\
:<Key>j: move(down) \n\
:<Key>U: jump(right, up) \n\
:<Key>L: jump(right) \n\
:<Key>N: jump(right, down) \n\
:<Key>Y: jump(left, up) \n\
:<Key>H: jump(left) \n\
:<Key>B: jump(left, down) \n\
:<Key>K: jump(up) \n\
:<Key>J: jump(down) \n\
<Key>.: move(nowhere) \n\
<Key>\\ : move(nowhere) \n\
<Btn2Up>: go_here() \n\
<Btn3Up>: wait() \n\
<Key>s: sonic() \n\
<Key>t: teleport() \n\
<Key>w: wait() \n\
<Key>z: new_game() \n\
Ctrl<Key>c: quit()
AACCTTIIOONNSS
Here's what each action that can be referenced via trans-
lations is and what it does:
The move() action with no parameters uses the rela-
tive position of the mouse pointer to determine the
direction in which to go. Otherwise, a combination
of "left", "right", "up", "down", and "nowhere"
will direct the direction. If "nowhere" is used,
the player's icon will remain still while the
robots take their turn.
The jump() action does the same thing as move(),
except it causes the player to move in a direction
until it can't go any farther. This is used in the
default translations when a key is shifted.
30 Sep 1989 3
XROBOTS(6) XROBOTS(6)
The go_here() action directs the player's icon to
the location where the mouse button was released.
Of course, the robots will chase you, and if doom
is impending, go_here() will stop.
The wait() action causes the robots to move until
they are breathing right down your neck.
The sonic() action invokes the sonic screwdriver.
The teleport() action invokes the teleportation
device.
The new_game() and quit() actions do what you would
expect them to.
OOPPTTIIOONNSS
In addition to the normal XToolkit options, xrobots
accepts command line options for the following resources:
spiffy, autoteleport, autoteleportalways, showmovement,
diewaiting, and scorefile. These correspond to the
resources as described above.
For example: xrobots -scorefile myscorefile
SSCCOORRIINNGG
Each robot that is wasted is worth ten points. Addition-
ally, bonuses are awarded for each teleportation, and for
not using the sonic screwdriver. The name for the high
score list comes from the USER environment variable.
FFIILLEESS
/usr/games/lib/xrobots_scores -- the score file
AAUUTTHHOORR
There are many versions of robots floating around. So
many that it would be difficult to say who the original
author is. This version was written from scratch by Brian
Warkentine (brianw@Sun.COM).
30 Sep 1989 4